package ua.pp.bizon.yandex.nb;

import ua.pp.bizon.yandex.api.impl.EventSupport;

import org.apache.commons.logging.LogFactory;

public class AddPhotosDialogData extends EventSupport {
	private int totalcount;
	private int countdone;
	private String from;
	private String to;
	private boolean repeatOnError;

	public AddPhotosDialogData() {
	}

	public int getTotalcount() {
		return totalcount;
	}

	public void setTotalcount(int totalcount) {
		this.totalcount = totalcount;
		tourchListeners();
	}

	public int getCountdone() {
		return countdone;
	}

	public void setCountdone(int countdone) {
		this.countdone = countdone;
		tourchListeners();
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
		tourchListeners();
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
		tourchListeners();
	}

	public void setRepeatOnError(boolean repeatOnError) {
		this.repeatOnError = repeatOnError;
		tourchListeners();
	}

	public void setRepeatOnErrorNoFire(boolean repeatOnError) {
		this.repeatOnError = repeatOnError;
		LogFactory.getLog(getClass()).trace("change to " + repeatOnError);
	}

	public boolean isRepeatOnError() {
		return repeatOnError;
	}
}